// A wrapper service for original $log
class LoggerService {
    constructor () {
    }

    error (message, data) {
        console.log(`Error: ${JSON.stringify(message)}, ${JSON.stringify(data)}`);
    }

    info (message, data) {
        console.log(`Info: ${JSON.stringify(message)}, ${JSON.stringify(data)}`);
    }

    debug (message, data) {
        if (!PRODUCTION){
            console.log(`Debug: ${JSON.stringify(message)}, ${JSON.stringify(data)}`);
        }
    }

    warning (message, data) {
        console.log(`Warning: ${JSON.stringify(message)}, ${JSON.stringify(data)}`);
    }
}

LoggerService.$inject = [];

export default LoggerService;
